#ifndef GX_FR_EDITOR_UIFORM_H
#define GX_FR_EDITOR_UIFORM_H

#include "Windows/GxWinForm.h"
#include "LibGL/GxUI.h"

namespace FinalRendering
{
	namespace Editor
	{
		using namespace GxLibBasic;

		class UIForm : public GxWinGUI::GLForm
		{
		protected:
			RefPtr<GxRendering::UI::UIEntry> ui;
			GxWinGUI::Timer tmrUI;
			void tmrUI_Tick(Object * sender, GxWinGUI::EventArgs e);
			void form_internal_Show(Object * sender, GxWinGUI::EventArgs e);
			void form_internal_Close(Object * sender, GxWinGUI::WindowCloseEventArgs & e);
			void Refresh();
		public:
			bool ProcessMessage(GxWinGUI::WinMessage msg);
			UIForm();
			~UIForm();
		};
	}
}

#endif